package com.aaa.common.util;

/**
 * @Author: YuXin
 * @Date : Created in 2020/11/9 16:05
 * @ClassName : Result
 * @Description :
 * @Package_Name : com.aaa.common.util
 */
public class CustomException extends RuntimeException {

    private int errorCode;
    private String errorMsg;

    public CustomException(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
